package com.jd.ymcc.feigin;

import com.jd.ymcc.SearchDoc;
import com.jd.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search",fallbackFactory = CourseEsFeignFallbackFactory.class)
public interface CourseEsFeign {
    @PostMapping("/courseEs/saveCourseEs")
    JSONResult saveCourseEs(@RequestBody SearchDoc courseDoc);
}
